
Last chance! 50% off unlimited learning
Sale ends in
poly.labels(polys)
SpatialPolygons
or SpatialPolygonsDataFrame
object.# Data for New Haven to use in example
data(newhaven)
# How many breaches of peace in each census block?
n.breach = poly.counts(breach,blocks)
# Compute densities and map them
choropleth(blocks,n.breach/blocks$AREA)
Run the code above in your browser using DataLab